﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Dallas.Services;

namespace AzureFileCacheWeb
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            DataGovCrimeByCitiesService CrimeSvc = new DataGovCrimeByCitiesService("128n1JpE7qTztYedelP3uYzrBCG1r40gkMUnwagFOtc=", new Guid("38ce5e47-b60c-4ab6-a971-454bb7f4f8bb"));


            //https://api.sqlazureservices.com/DataGovService.svc/crimes/Alabama?city=Mobile&year=2006&$format=atom10
            var CrimeData = CrimeSvc.Invoke("Alabama", null, "2006");
            dgCrimeData.DataSource = CrimeData;
            dgCrimeData.DataBind();

        }
    }
}
